/**puts putchar fputc*/
#include<stdio.h>
#include<stdlib.h>
int main(void)
{
	int ret;
	puts("hello world");
	putchar('A');
	putchar(100);
	putchar('\n');
	fputc('A',stdout);
	FILE *fp=NULL;
	fp=fopen("./test.txt","a");
	if(NULL==fp){
		perror("fopen error");
		return 1;
	}
	fputc('A',fp);

	ret=fputs("hello world",fp);
	printf("\n result:%d\n",ret);
	fclose(fp);

	return 0;
}
